<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="${pk.mapperPackage}.${pk.mapperName}" >

    <resultMap id="BaseResultMap" type="${pk.entityPackage}.${pk.entityName}" >
<#list table.fields as field>
<#if field.pkField>
        <id column="${field.fieldName}" property="${field.entityFieldName}" />
<#else>
        <result column="${field.fieldName}" property="${field.entityFieldName}" />
</#if>
</#list>
    </resultMap>

    <sql id="Base_Column_List" >
    <#list table.baseColumnList as row>
        ${row}
    </#list>
    </sql>
</mapper>
